Page({
    data: {
        triangleDirection: 'down'
    },
    onLoad: function(options) {

    },
    change_direction() {
        this.setData({
            triangleDirection: this.data.triangleDirection === 'down' ? 'up' : 'down'
        })
    },
    addCart() {
        wx.showToast({
            title: '加入成功',
            icon: 'success'
        })
    }
})